import request from '@/utils/request'

// 查询车主详情列表
export function listDetials(query) {
  return request({
    url: '/driver/detials/list',
    method: 'get',
    params: query
  })
}

// 查询车主详情详细
export function getDetials(id) {
  return request({
    url: '/driver/detials/' + id,
    method: 'get'
  })
}

// 新增车主详情
export function addDetials(data) {
  return request({
    url: '/driver/detials',
    method: 'post',
    data: data
  })
}

// 修改车主详情
export function updateDetials(data) {
  return request({
    url: '/driver/detials',
    method: 'put',
    data: data
  })
}

// 删除车主详情
export function delDetials(id) {
  return request({
    url: '/driver/detials/' + id,
    method: 'delete'
  })
}
